//
//  CinemaDataModel.h
//  ShowTimeApp
//
//  Created by Ruby on 10/24/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseDataModel.h"
#import "Cinema.h"
#import "CinemaService.h"

@interface CinemaDataModel : BaseDataModel {

}
//Khoi tao CinemaDataModel
-(id)initCinemaDataModel;
//Them 1 object (Cinema) vao data model
-(void)insertObject:(id)cinema;
//Them 1 danh sach cac objetc vao data model
-(void)insertObjects:(NSMutableArray *)cinemaList;
//Lay toan bo object (Cinema) va sap xep tang theo ID
-(NSMutableArray*)getAllCinemaSortByIDAscending;
//Lay toan bo object (Cinema) va sap xep tang theo Name
-(NSMutableArray*)getAllCinemaSortByNameAscending;
//Lay toan bo cinema theo groupName va sap xep tang theo ID
-(NSMutableArray*)getAllCinemaByGroupNameSortByNameAscending:(NSString*) groupName;
//Lay chi tiet cinema
-(Cinema*)getDetailByID:(int) ID;
//Xoa toan bo danh sach cinema
-(void)deleteAll;
//Chuyen doi kieu object tu kieu service entity sang Cinema (data model)
+(Cinema*)convertFromCinemaService_CinemaEntity:(CinemaService_CinemaEntity*)svCinemaEntity TodbCinemaEntity:(Cinema*)dbCinemaEntity;
//Ham xuat danh sach cinema de test
-(void)output:(NSMutableArray*)cinemaList;
-(void)addObjects;
@end
